function onButtonClickCC(e)
{
    // 1. Create Element of type <select>
    var newElement = document.createElement("select");
    newElement.value = "selectCC";
    newElement.style.border = "black 2px solid";
    newElement.id = "selectCC";
    newElement.style.padding = "5px";
    newElement.style.marginRight = "10px";

    var opt1 = document.createElement("option");
    opt1.value = "mastercard";
    opt1.text = "Mastercard";
    var opt2 = document.createElement("option");
    opt2.value = "visa";
    opt2.text = "Visa";

//    var newElement1 = document.createElement("select");
//    newElement1.value = "selectBCC";
//    newElement1.style.border = "black 2px solid";
//    newElement1.id = "selectBCC";
//    newElement1.style.padding = "5px";
//    newElement1.style.marginRight = "10px";
//
//    for(var i = 0; i < arrBank.length; i += 4) {
//        var opt3 = document.createElement("option");
//        opt3.value = "bankName" + i;
//        opt3.text = i;
//    }

    var submit = document.createElement("input");
    submit.type = "submit";
    submit.id = "submitCC";
    submit.style.padding = "5px";
    submit.value = "Create";

    newElement.appendChild(opt1);
    newElement.appendChild(opt2);
    //newElement1.appendChild(opt3);
    // 2. Find parent element
    var creditCard = document.getElementById("creditCard");

    // 3. Append to parent

    creditCard.innerText = "Credit card: ";
    creditCard.appendChild(newElement);
    //creditCard.appendChild(newElement1);
    creditCard.appendChild(submit);

    e.preventDefault();
}

